Skip to main content

GraphQL over WebSocket and RSocket

· One min read
Libing Chen

IntelliJ IDEA 2022.2 EAP 5 has GraphQL support in the HTTP client, and schema extension is supported too.

GraphQL over WebSocket

GRAPHQL ws://localhost:8080/graphql
Content-Type: application/graphql

subscription demo{ greetings }

GraphQL over RSocket

Current schemas for RSocket are: rsocket for tcp, rsocketws for WS and rsocketwss for WSS.

GRAPHQL rsocketws://localhost:8080/rsocket/graphql

query demo {
bookById(id: "book-1") {
id
name
pageCount
author {
firstName
lastName
}
}
}

You should install RSocket JetBrains plugin first to try GraphQL over RSocket with JetBrains IDE.